﻿@model IRIS.Models.Sponsor

@{
    ViewBag.Title = "Edit";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
 @if (!ViewData.ModelState.IsValid)
 {
     <div class="error" >
        @Html.ValidationSummary(false)
    </div>
 }

@using (Html.BeginForm()) {
    <fieldset>
        <legend>Styrktaraðili</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            <label for="Name">Nafn</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
        </div>

        <div class="editor-label">
            <label for="Description">Lýsing</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
        </div>

        <div class="editor-label">
            <label for="URL">Heimasíða</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.URL)
        </div>
        <p>Dæmi: Http://wwww.fyrirtæki.is</p>

        <p>
            <input type="submit" value="Breyta" />
        </p>
    </fieldset>
}


